package interfaces;

/**
 * @classname:Cat
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/28 17:34
 * @version: 0.1
 * @since:1.8
 */
public class Cat extends Pet {
    private String coatstyle;

    public Cat(String coatstyle) {
        this.coatstyle = coatstyle;
    }
    public Cat() {
    }
    public Cat(String name, String gender, int exp, int degree, String coatstyle) {
        super(name, gender, exp, degree);
        this.coatstyle = coatstyle;
    }

    public String getCoatstyle() {
        return coatstyle;
    }

    public void setCoatstyle(String coatstyle) {
        this.coatstyle = coatstyle;
    }
    public  void fly(){
        System.out.println(this.getName()+"在飞");
    }

    @Override
    public void follow() {
        System.out.println(this.getName()+"在跟随主人");
    }

    @Override
    public void eat() {
        System.out.println(this.getName()+"在吃猫食");
    }
}
